package com.easycms.web.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @TableName sys_user
 */
public class SysUser implements Serializable {
    /**
     * 用户id
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    @TableId(value = "id",type =IdType.INPUT)
    private Long id;

    /**
     * 登录账号
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private String loginName;

    /**
     * 密码
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private String passWord;

    /**
     * 用户名
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private String userName;

    /**
     * 手机号码
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private String mobilePhone;

    /**
     * 邮箱
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private String email;

    /**
     * 用户性别（1男 0女 2未知）
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private int gender=1;

    /**
     * 是否是超管(0-不是，1-是)
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private int isSuper=0;

    /**
     * 角色id
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private Long roleId=0L;

    /**
     * 部门
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private int deptId=0;

    /**
     * 备注
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private String remark;

    /**
     * 账号状态(0正常，1-禁用)
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private int userStatus=0;

    /**
     * 删除标志（0代表存在 1代表删除）
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private Integer delFlag=0;

    /**
     * 创建人
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private String createBy;

    /**
     * 创建时间
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private Date createTime;
    /**
     * 更新人
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private String updateBy;

    public List<Long> getPositionList() {
        return positionList;
    }

    public void setPositionList(List<Long> positionList) {
        this.positionList = positionList;
    }

    @TableField(exist = false)
    private List<Long> positionList;

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    /**
     * 更新时间
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private Date updateTime;
    private String deptName;

    private String userAvatar;


    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }


    /**
    *
     * @author yushuo
     * @description //用户关联的角色
     * @date 14:13 2021/2/2
     * @param
     * @return
    **/
    @TableField(exist = false)
    private String roleName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_user
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public Long getId() {
        return id;
    }

    /**
     * 用户id
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 登录账号
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public String getLoginName() {
        return loginName;
    }

    /**
     * 登录账号
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    /**
     * 密码
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public String getPassWord() {
        return passWord;
    }

    /**
     * 密码
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    /**
     * 用户名
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 用户名
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 手机号码
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public String getMobilePhone() {
        return mobilePhone;
    }

    /**
     * 手机号码
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    /**
     * 邮箱
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public String getEmail() {
        return email;
    }

    /**
     * 邮箱
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 用户性别（1男 0女 2未知）
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public Integer getGender() {
        return gender;
    }

    /**
     * 用户性别（1男 0女 2未知）
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setGender(Integer gender) {
        this.gender = gender;
    }

    /**
     * 是否是超管
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public int getIsSuper() {
        return isSuper;
    }

    /**
     * 是否是超管
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setIsSuper(int isSuper) {
        this.isSuper = isSuper;
    }

    /**
     * 角色id
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public Long getRoleId() {
        return roleId;
    }

    /**
     * 角色id
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    /**
     * 部门
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public Integer getDeptId() {
        return deptId;
    }

    /**
     * 部门
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    /**
     * 备注
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 账号状态(0-正常，1-禁用)
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public Integer getUserStatus() {
        return userStatus;
    }

    /**
     * 账号状态(0-正常，1-禁用)
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    /**
     * 删除标志（0代表存在 1代表删除）
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public Integer getDelFlag() {
        return delFlag;
    }

    /**
     * 删除标志（0代表存在 1代表删除）
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    /**
     * 创建人
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 创建人
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 创建时间
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     *
     * @mbg.generated Fri Jan 29 17:21:01 CST 2021
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}